
export declare namespace RespDataType {
    export interface AccountItem{
        accountId: string;
        accountName: string;
        address: string;
        linkman: string;
        phone: string;
        industry: string;
        status: "0" | "1";      //  0正常 1停用
        createBy: string;
        updateBy: string;
        createTime: string;
        updateTime: string;
        remark: string;
    }

    export type AccountPageList = PageList<AccountItem>;

    // 授权秘钥信息
    export interface AuthSecretInfo{
        accountId: string,
        aiotClientId: string,
        aiotClientSecret: string,
        skyClientId: string,
        skyClientSecret: string,
        alarmClientId: string,
        alarmClientSecret: string,
        createTime: string,
    }

    // 报告分组信息
    export interface IReportGroupItem {
        label: string;
        value: string;
    }

    export type ReportGroupList = IReportGroupItem[];
}

export declare namespace RequestDataType {
    export interface CreateAccountItem{
        accountName: string;
        address: string;
        linkman: string;
        phone: string;
        industry: string;
        remark: string;
    }

    export interface UpdateAccountItem extends CreateAccountItem{}

    // 初始化账户的管理员
    export interface InitAdminUserParams{
        userName: string;
        nickName: string;
        password: string;
        email: string;
        phonenumber: string;
    }

    // 保存授权秘钥的参数
    export interface SaveAuthSecretParams{
        accountId: string,
        aiotClientId: string,
        aiotClientSecret: string,
        skyClientId: string,
        skyClientSecret: string,
        alarmClientId: string,
        alarmClientSecret: string,
    }
}
